<template>
  <div class="container">
    <!-- 文字部分 -->
    <div class="free_word">
      <div class="top">
        <div class="line1"></div>
        <h1>自定义模板+随心所欲</h1>
        <div class="line1"></div>
      </div>
      <span>自定义模板，随意搭配，自定义主题</span>
    </div>
    <!-- 图片与内容 -->
    <div class="myself_make">
      <div>
        <img src="@/assets/images/index-drag.png" alt="" class="myself_img" />
      </div>
      <div class="right">
        <h1>丰富的物料模块组件，可随意进行搭配，还可进行主题配置等等</h1>
        <span>自定义的模板可提交至官方，将在首页展出</span>
        <div>
          <el-button @click="createResume" class="btn" type="success" size="large" round>
            开始创建模板
          </el-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
  function createResume() {
    // router.push({ name: 'create', query: { id: item.id, name: item.name } })
    router.push({ name: 'create' })

  }
</script>
<style scoped lang="scss">
@mixin size($w, $h) {
  width: $w;
  height: $h;
}
.container {
  @include size(100%, 700px);

  .free_word {
    @include size(100%, 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    .top {
      display: flex;
      margin-top: 50px;
      margin-bottom: 25px;
      justify-content: center;
      .line1 {
        width: 200px;
        height: 1px;
        background-color: #000;
        transform: scaleY(0.5); /* 延Y轴缩小1倍 */
        transform-origin: 50% 100%; /* 改变元素变形的原点 */
      }
      h1 {
        color: var(--5f87c594-titleColor);
        margin: 0 30px;
      }
    }
  }
  .myself_make {
    @include size(100%, 465px);
    display: flex;
    padding-left: 50px;
    padding-right: 25px;
    .myself_img {
      width: 650px;
    }
    .left {
      width: 1200px;
      box-shadow: 0px 0px 70px rgba(175, 50, 50, 0.2);
      img {
        width: 100%;
      }
    }
    .right {
      display: flex;
      flex-direction: column;
      padding-top: 100px;
      padding-left: 100px;
      h1 {
        color: #d73cc2;
        // 字间距
        letter-spacing: 3px;
      }
      span {
        color: #7f8b96;
        margin-top: 1vh;
        margin-bottom: 6.5vh;
      }
      .btn {
        width: 150px;
      }
    }
  }
}
</style>
